package com.hdjk.view.entity;

import android.support.annotation.NonNull;

import com.lst.projectlib.entity.BaseEntity;

import java.util.List;

/**
 * Created by Administrator on 2017/11/6.
 */

public class RiskTestEntity extends BaseEntity implements Comparable<RiskTestEntity> {
    private String title;//题目标题
    private String number;//题目序号
    private List<Option> option;//题目选项

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public List<Option> getOption() {
        return option;
    }

    public void setOption(List<Option> option) {
        this.option = option;
    }

    @Override
    public int compareTo(@NonNull RiskTestEntity riskTestEntity) {
        int r=Integer.parseInt(this.getNumber());
        int t=Integer.parseInt(riskTestEntity.getNumber());
        return r-t;
    }


    public class Option{
        private String index;
        private String content;

        public String getIndex() {
            return index;
        }

        public void setIndex(String index) {
            this.index = index;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }
    }
}
